package com.woniuxy.control;

import com.woniuxy.commons.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/t")
public class TestServlet  extends BaseServlet {
        public String ok(HttpServletRequest req, HttpServletResponse resp){
            req.setAttribute("name",4);
            req.getSession().setAttribute("name2",5);
            return "r:/a.jsp";
        }

        public String getJstl(HttpServletRequest req, HttpServletResponse resp){
            req.setAttribute("user","tom");

            return "f:/jstl.jsp";
        }
}
